﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZHDJ.Data.Models.Edu;
using ZHDJ.Web.PortalParts;
using ZHDJ.WebPage.Master;

namespace ZHDJ.Web.Portal.Edu
{
    public partial class PartyTest : UseMorePageMasterPage
    {
        #region  属性


        /// <summary>
        /// 专题
        /// </summary>
        public string SpecialFlag
        {
            get
            {
                return this.Request["SpecialFlag"] ?? "null";
            }

        }


        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {
           
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        #region 数据加载

        public void LoadData()
        {
            var model = DB.PartyEduSpecials.Where(a=>a.SpecialFlag==SpecialFlag).FirstOrDefault();
            if (model != null)
            {
                this.litDesc.Text=model.StudyDescription;
            }
        }

        #endregion


        #region 事件

        #endregion

        #region 模块菜单
        /// <summary>
        /// 初始化module  如果通过url传参可不设置
        /// </summary>
        protected override void InitModule()
        {
            Module = "PartyTest";
            //Category = "";

        }
        #endregion
    }
}